package com.zs.interfaces.facade.tuShare;

import com.zs.application.service.tuShare.TuShareNewsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2022/8/25 0025 下午 11:41
 * @desc tuShare新闻相关数据抽取控制类-另类数据
 **/
@Slf4j
@RestController
@RequestMapping("/tuShare/news")
public class TuShareNewsController {

    @Autowired
    private TuShareNewsService tuShareNewsService;

    /**
     * 新闻通讯抽取
     */
    @PostMapping("/extractMajorNews")
    public void extractMajorNews() {
        log.info("新闻通讯抽取 入参");
        tuShareNewsService.extractMajorNews();
        log.info("新闻通讯抽取 出参");
    }

}
